package com.briup.day37;

import java.io.FileInputStream;
import java.io.InputStream;

public class IODemo2 {

	public static void main(String[] args) throws Exception {
		String path = "src/com/briup/day37/demo2.txt";
		InputStream is = new FileInputStream(path);

		byte[] buf = new byte[10];
		int len = -1;
		while ((len = is.read(buf)) != -1) {
		/*	for (int i = 0; i < len; i++) {
				System.out.print((char)buf[i]);
			}
			*/
			String str = new String(buf, 0, len);
			System.out.print(str);
		}
		
		
		//中文
			 
	}

}
